package com.wpp.concurrent.demo2_join;

/**
 * @author wpp25
 * @date 2021/6/22 21:54
 * @description：
 */
public class Demo2Runnable implements Runnable{
    @Override
    public void run() {
        int count = 0;
        for (int i = 0; i < 10; i++) {
            System.out.println(Thread.currentThread().getName() + " 正在运行...runnable"+ count++);
            try {
                Thread.sleep(500);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }

        }

    }
}
